package com.hrm.system.dao;

import com.hrm.domain.system.Permission;
import com.hrm.domain.system.Role;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @Author: 林海湾Sea
 * @Date :  2021/11/26 16:07
 * @Decription:
 */
public interface PermissionDao extends JpaRepository<Permission, String>, JpaSpecificationExecutor<Permission> {

    List<Permission> findByTypeAndPid(int type, String pid);
}
